package com.cz.background.dto.common.menu;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public class AddSysMenuDTO {

    private String id;

    @NotBlank(message = "菜单名称不能为空")
    @Size(max = 30, message = "菜单名称长度不能超过30个字符")
    private String name;

    @Size(max = 100, message = "URL长度不能超过100个字符")
    private String url;

    @Size(max = 64, message = "父级菜单ID长度不能超过64个字符")
    private String parentId;

    @NotNull(message = "状态不能为空")
    private Integer status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
